/** @jsxImportSource @emotion/react */
import * as React from "react";
import {OriginalViewProps,} from "../../common/base";
import {createItem,} from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {ProjectListRq} from "../../vessel/editProj";
import {EntranceSetup, VsProjects默认} from "./orcBase";
import {DeviceSurveyPrf} from "../../boiler/editorDJ";
import {WaterQuality} from "./WaterQuality";
import {config设备概况,} from "./viewRes";
import {ConclusionStart} from "./Conclusion";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectListRq config={VsProjects默认}  label={'目录页'}/>),
  createItem('Survey', <DeviceSurveyPrf config={config设备概况} label={'启动锅炉水汽质量检验报告-设备概况'}/>),
  createItem('Conclusion', <ConclusionStart label={'检验意见，下结论'}/>),

  createItem("WaterQuality", <WaterQuality label={'水汽质量检验'}/>),
  createItem('_Controller',  <></>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
